package gaej.example.contact.client;

import java.io.Serializable;


import javax.jdo.annotations.Extension;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

// import com.google.appengine.api.datastore.Key;


@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Bezetting implements Serializable {

	private static final long serialVersionUID = 1L;
	
    @PrimaryKey    
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    @Extension(vendorName="datanucleus", key="gae.encoded-pk", value="true")
    private String encodedKey;	
	
	//private Key key;
	@Persistent
	private String instrument;
	@Persistent
	private Long aantal;
	
	public Bezetting() {
		super();
	}

	public Bezetting(String instrument, Long aantal) {
		super();
		this.instrument = instrument;
		this.aantal = aantal;
	}


	public String getInstrument() {
		return instrument;
	}

	public void setInstrument(String instrument) {
		this.instrument = instrument;
	}

	public Long getAantal() {
		return aantal;
	}

	public void setAantal(Long aantal) {
		this.aantal = aantal;
	}

}

